#include <iostream>
#include <cctype>
#include <vector>

using std::cin;
using std::cout;
using std::endl;
using std::string;
using std::vector;

int main()
{
	vector<string> sv;
	string str;
	while(cin >> str)
	{
		for(string::size_type ix = 0; ix != str.size(); ix++)
		{
			//tolower(str[ix]);
			str[ix] = toupper(str[ix]);
		}
		sv.push_back(str);
	}
	
	for(vector<string>::size_type ix = 0; ix != sv.size(); ix++)
	{
		cout << sv[ix] << " ";
		if(ix % 8 == 0 && ix > 1)
		{
			cout << endl;
		}
	}

	return 0;
}
